# -*- coding:utf-8 -*-

from domain import Result
from domain.http import convert


@convert
def bind(abc, **kw):
    result = Result(code=Result.SUCCESS)

    result.result = Result.SUCCESS
    result.message = "OK"

    result.exts['abc'] = abc
    result.exts['xyz'] = kw.get('xyz', 'xxx')

    return result
